﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="meterialOrderAdd.aspx.cs" Inherits="WebSite.admin.order.meterialOrderAdd" %>

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>商品列表</title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>



<body class="body">
    <table class="main" cellpadding="0" cellspacing="0">

        <tr>
            <td class="td_middle_middle">
                <div class="maincontent">
                    <form id="formSearch" action="meterialOrderAdd.aspx">
                        &nbsp;&nbsp;&nbsp; 
                        <label>
                            查找：</label>
                        <select id="selectGoods" name="t">
                            <option value="goodsName" selected="selected">商品名称</option>
                            <option value="goodsNo">商品编号</option>
                            <option value="categoryName">商品分类</option>
                        </select>
                        &nbsp;
                        <input id="txtKeyWord" type="text" name="kw" value="<%=kw %>" />
                        &nbsp;
                              <select name="selectSubCompany" id="selectSubCompany">
                       <option selected="selected" value="">选择子商家</option>
                       <%= SelectSubCompnay.ToString() %>
                     </select>
                           <input id="Button1" type="button" class="formButton" value="搜  索" onclick="keywordMeterialSearch('meterialOrderAdd.aspx');" />
                        &nbsp;&nbsp;
                        <%--<input id="btnIntegral" type="button" class="formButton" value="可兑换礼品" onclick="location.href='?type=integral';" />
                         &nbsp;&nbsp;--%>
                        <label>
                            每页显示：</label>
                        <select id="selectPageSize" name="ps" onchange="SetPageSize();">
                            <option value="10">10</option>
                            <option value="20" selected="selected">20</option>
                            <option value="50">50</option>
                            <option value="100">100</option>
                        </select>
                    </form>
                    <form id="form1" runat="server">
                        <table cellpadding="0" cellspacing="0">
                            <tr class="tr_title">
                                <td>
                                    <input name="chkall" value="1" type="checkbox" onclick="CheckAllNext(this,'Item')" title="全选/反选" />
                                </td>
                                <td>
                                    <span onclick="SetOrder('goodsName');">商品名称</span></td>
                                <td>
                                    <span onclick="SetOrder('goodsNo');">商品编号</span></td>
                                <td>
                                    <span onclick="SetOrder('category');">商品分类</span></td>
                                <td>
                                    <span onclick="SetOrder('salePrice');">销售价格</span></td>
                                 <td>
                                    <span onclick="SetOrder('onSale');">折扣</span></td>
                                 <td>
                                    <span onclick="SetOrder('realyPrice');">成交价格</span></td>
                             
                                <td>
                                    <span onclick="SetOrder('isBest');">是否精品</span></td>
                                <td>
                                    <span onclick="SetOrder('isNew');">是否新品</span></td>
                                <td>
                                    <span onclick="SetOrder('isTopSelling');">是否热销</span></td>
                                <td> <span onclick="SetOrder('inventory');">库存</span></td>
                        
                            </tr>
                            <asp:Repeater ID="rptGoods" runat="server"   >
                                <ItemTemplate>
                                    <tbody>
                                        <tr>
                                            <td>
                                                <input id='cb<%# Eval("id") %>' name="Item" type="checkbox" onclick="ShowNext();"
                                                    value='<%# Eval("id") %>' /></td>
                                            <td>

                                           <a  onclick="openNewTab('<%# Eval("goodsName")%>','/admin/goods/goods.aspx?show=1&id=<%# Eval("id") %>')"  title="<%# Eval("goodsName")%>"> <%# Eval("goodsName")%></a>

                                            </td>

                                            <td>
                                                <%# Eval("goodsNo")%>
                                            </td>
                                            <td>
                                                <%# GetCategoryName(Eval("category"))%>
                                            </td>
                                            <td>
                                                <%# Eval("salePrice")%>
                                            </td>
                                              <td>
                                                <%# Eval("onSale")%>
                                            </td>
                                              <td>
                                                <%# Eval("realyPrice")%>
                                            </td>
                          
                                            <td>
                                                <%# Convert.ToInt32(Eval("isBest"))==1?"是":"否"%>
                                            </td>
                                            <td>
                                                <%# Convert.ToInt32(Eval("isNew"))==1?"是":"否"%>
                                            </td>
                                            <td>
                                                <%# Convert.ToInt32(Eval("isTopSelling"))==1?"是":"否"%>
                                            </td>
                                             <td>
                                                <%# Eval("inventory")%>
                                            </td>
                                         
                                        </tr>
                                    </tbody>
                                </ItemTemplate>
                                <FooterTemplate>
                                    <tr>
                                        <td colspan="11" style="text-align: center;">
                                            <label id="lblEmpty" style='display: <%# rptGoods.Items.Count==0?"block":"none"%>;
                                                color: Red;'>
                                                没有找到任何记录</label>
                                        </td>
                                    </tr>
                                </FooterTemplate>
                            </asp:Repeater>
                        </table>
                        <asp:Button ID="btnNext" runat="server" Text="下一步" OnClientClick="return confirm('确定订购选中的商品吗？');"
                           EnableViewState="false" CssClass="formButton" onclick="btnNext_Click" />
                        <% Response.Write((new Gift.WebApp.PageListNo()).DisplayPage(total, pageSize, pageIndex)); %>
                    </form>
                </div>
            </td>

        </tr>
      
    </table>
</body>
</html>
















